package com.test.dto;

public class ResultBean<T> {
    private String resultCode;
    private T data;
    private String message;

    public static <T> ResultBean ok(T data){
        ResultBean resultBean = new ResultBean();
        resultBean.resultCode = "000000";
        resultBean.data = data;
        resultBean.message = "success";
        return resultBean;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
